package com.tuu.utils;

public class ObjectThreadLocal {

    //把构造函数私有，外面不能new，只能通过下面两个方法操作
    private ObjectThreadLocal(){

    }

    private static final ThreadLocal<Object> LOCAL = new ThreadLocal<Object>();

    public static void set(Object object){
        LOCAL.set(object);
    }

    public static Object get(){
        return LOCAL.get();
    }
    public static void remove(){
         LOCAL.remove();
    }
}
